package com.wondersgroup.framework.sample.component.form.action;

import com.wondersgroup.framework.core.web.struts2.action.BaseAction;
import com.wondersgroup.framework.core5.model.vo.ValueObject;
import com.wondersgroup.framework.sample.component.form.vo.UserVO;
import org.apache.commons.logging.Log;

public class LoginAction extends BaseAction
{
  UserVO userVO;

  public LoginAction()
  {
    this.userVO = new UserVO();
  }

  public ValueObject getValueObject() {
    return this.userVO;
  }

  protected String operate()
  {
    this.logger.info("用户" + this.userVO.getName() + "已登记成功");
    return "success";
  }

  public UserVO getUserVO()
  {
    return this.userVO;
  }

  public void setUserVO(UserVO userVO)
  {
    this.userVO = userVO;
  }
}